home *** CD-ROM | disk | FTP | other *** search
/ Champak 33 / Volume 33 - JOGO DISK .iso / Games / space_escape.swf / scripts / DefineSprite_217_game_world_powerUps_U#keyGreen / frame_1 / DoAction.as
Text File  |  2007-01-15  |  386b  |  12 lines

  1. this.onEnterFrame = function()
  2. {
  3.    var _loc1_ = this;
  4.    var _loc2_ = _root;
  5.    if(_loc2_.game.ship.hitTest(_loc1_._x + _parent._parent._x,_loc1_._y + _parent._parent._y,true) && _loc2_.game.ship.active == true)
  6.    {
  7.       _loc2_.game.ship.keyGreen = true;
  8.       _loc2_.game.world.powerUpsTextMessage(_loc1_._x,_loc1_._y,"Green Key");
  9.       removeMovieClip(_loc1_);
  10.    }
  11. };
  12.